/*
 * @Description: []
 * @Author: Iseven Monkey <iswoter@gmail.com>
 * @Date: 2023-10-28 06:34:35
 * @LastEditors: Iseven Monkey <iswoter@gmail.com>
 * @LastEditTime: 2023-10-31 21:19:57
 */
// vue 基本配置

const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  devServer: {
    port: 8080, // 端口号
    host: "localhost",
    https: false, // https:{type:Boolean}
    open: true, //配置自动启动浏览器

    // 配置代理
    proxy: {
      "/api": {
        target: "http://painter.iswoter.cn",
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
};
